﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="HistoryTotal.aspx.cs" Inherits="Cxx.OrderManagerSys.HistoryTotal" %>
<%@ Register TagPrefix="webdiyer" Namespace="Wuqi.Webdiyer" Assembly="AspNetPager, Version=7.5.1.0, Culture=neutral, PublicKeyToken=fb0a0fe055d40fd4" %>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>建鑫化工生产管理系统</title>
    <link href="UI/dui.min.css" rel="stylesheet" />
    <link href="UI/ui_k.css" rel="stylesheet" />
    <link rel="shortcut icon" type="image/x-icon" href="https://production-assets.codepen.io/assets/favicon/favicon-8ea04875e70c4b0bb41da869e81236e54394d63638a1ef12fa558a4a835f1164.ico" />
    <link rel="mask-icon" type="" href="https://production-assets.codepen.io/assets/favicon/logo-pin-f2d2b6d2c61838f7e76325261b7195c27224080bc099486ddd6dccb469b8e8e6.svg" color="#111" />
    <link rel="stylesheet prefetch" href="https://static.tcy365.com/cdn/bootstrap/3.3.7/custom/1.0.2/css/bootstrap.min.css" />
    <link rel="stylesheet" href="laydate/theme/default/laydate.css" />
    <link rel="stylesheet" href="layui/css/layui.css" />
    <script src="laydate/laydate.js"></script>
    <script src="layui/layui.all.js"></script>
    <script src="JS/jquery-1-7-2.js"></script>
</head>
<body>
    <form id="form1" runat="server">
        <div style="padding: 15px;">
                    <div class="ml10 mr10">
                        <div class="d-panel mb10">
                            <h3 class="arrow">
                                <strong>查询</strong><a class="close"></a></h3>
                            <div id="screenItems" runat="server" class="content nopadding">
                                <asp:Panel ID="pnlSearch" runat="server" class="d-seach">
                                    <div class="d-seach">
                                        <div class="d-seach-rank">
                                            <span>收货单位:</span>
                                            <asp:TextBox ID="txtCustomerName" MaxLength="11" CssClass="d-form-input w100" runat="server"></asp:TextBox>
                                        </div>
                                        <div class="d-seach-rank">
                                            <%--<span>生产者:</span>
                                            <asp:TextBox ID="txtProducer" CssClass="d-form-input w100" runat="server"></asp:TextBox>--%>
                                            操作日期：<asp:TextBox ID="txtStartTime" CssClass="d-form-input w100" runat="server"></asp:TextBox> &nbsp;至&nbsp; <asp:TextBox ID="txtEndTime" CssClass="d-form-input w100" runat="server"></asp:TextBox>
                                        </div>
                                        <div class="d-seach-sub">
                                            <div class="layui-btn-group">
                                                <asp:Button runat="server" Text="查询" ID="btBrowse" CssClass="layui-btn layui-btn-sm" OnClick="btBrowse_Click" />
                                            </div>
                                        </div>
                                    </div>
                                </asp:Panel>
                            </div>
                        </div>
                        <div>
                            <div class="content nopadding">
                                <asp:Repeater ID="rptOrderList" runat="server">
                                    <HeaderTemplate>
                                        <table class="layui-table">
                                            <thead>
                                                <tr>
                                                    <td style="width: 10%;">操作号
                                                    </td>
                                                    <td style="width: 20%;">收货单位
                                                    </td>
                                                    <td style="width: 20%;">总金额
                                                    </td>
                                                    <td style="width: 20%;">操作时间
                                                    </td>
                                                    <td style="width: 20%;">操作时选择的时间
                                                    </td>
                                                    <td style="width: 10%">
                                                        操作
                                                    </td>
                                                </tr>
                                            </thead>
                                            <tbody>
                                    </HeaderTemplate>
                                    <ItemTemplate>
                                        <tr>
                                            <td>
                                                <%#Eval("Id") %>
                                            </td>
                                            <td>
                                                <%#Eval("Receiver")%>
                                            </td>
                                            <td>
                                                <%#Eval("Amount") %>
                                            </td>
                                            <td>
                                                <%#Eval("OperateTime")%>
                                            </td>
                                            <td>
                                                <%#Eval("SelectTime")%>
                                            </td>
                                            <td>
                                                <a class="layui-btn layui-btn-sm" href="javascript:Delete('<%#Eval("Id").ToString()%>')">删除</a>
                                            </td>
                                        </tr>
                                        </tbody>
                                    </ItemTemplate>
                                    <FooterTemplate>
                                        </table>
                                    </FooterTemplate>
                                </asp:Repeater>

                            </div>
                            <div class="d-pages-list mt10">
                                <webdiyer:AspNetPager ID="pager" runat="server" showpagerinfo="true" showgoto="true" OnPageChanged="pager_PageIndexChange" />
                            </div>
                        </div>
                    </div>
                </div>
        <script type="text/javascript">
            function Delete(id) {
                $.ajax({
                    url: '/DeleteHistory.ashx?id=' + id,
                    success: function () {
                        alert('删除成功');
                        $('#btBrowse').click();
                    }
                });
            }

            //执行一个laydate实例
            laydate.render({
                elem: '#txtStartTime' //指定元素
            });
            laydate.render({
                elem: '#txtEndTime' //指定元素
            });
        </script>
    </form>
</body>
</html>
